<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("input").focus(function(){
    $(this).css("background-color","grey");
	$(this).css("color","white");
  });
  $("input").blur(function(){
    $(this).css("background-color","white");
	$(this).css("color","black");
  });
});
</script>
</head>
<body>
<br/><br/><br/><br/>
First Name:
<input type="text" name="fname"><br/>
Last Name:
<input type="text" name="lname"><br/>
Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="email">

</body>
</html>

